<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link href="/admin/styles/general.css" rel="stylesheet" type="text/css" />
	<link href="/admin/styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>
	<span class="action-span1"><a href="index.php?act=main">SHOP 广告图管理</a> </span><span id="search_id" class="action-span1"> - 广告图推荐 </span>
	<div style="clear:both"></div>
</h1>

<form method="post" action="" enctype="multipart/form-data">
{!! csrf_field() !!}
	<table>
		<tr>
			<td>广告图名称：</td>
			<td>{{$recommend->name}}</td>
		</tr>
		<tr>
			<td>广告图路径：</td>
			<td>{{$recommend->url}}</td>
		</tr>
		<tr>
			<td>广告图图片：</td>
			<td><img src="/<?php echo $recommend->image?>" height="80"></td>
		</tr>
		<tr>
			<td>广告图位置：</td>
			<td>
	        @if($recommend->level==1)
	            <input type="radio" name="adv" value=1 checked="checked">位置1
	            <input type="radio" name="adv" value=2 >位置2
	            <input type="radio" name="adv" value=3 >位置3  
	 		@elseif($recommend->level==2)
			      <input type="radio" name="adv" value=1 >位置1
			      <input type="radio" name="adv" value=2 checked="checked">位置2
			      <input type="radio" name="adv" value=3 >位置3 
			@else 
				<input type="radio" name="adv" value=1 >位置1
				<input type="radio" name="adv" value=2 >位置2
				<input type="radio" name="adv" value=3 checked="checked">位置3     
	        @endif  
			</td>	
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" value="添加"></td>
		</tr>
	</table>
</form>

<div id="footer">
	版权所有 &copy; 2006-2013 软工教育 - 高级PHP - 
</div>

</body>
</html>